package com.aurora.app.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.aurora.base.entity.BaseEntity;


@Entity
@Table(name="tb_mark_on user_thing")
public class MarkOnUserThing extends BaseEntity {
	private Thing userThing;
	
	@ManyToOne(cascade = {CascadeType.REFRESH}, optional = false, fetch = FetchType.LAZY)
	@JoinColumn(name = "f_user_thing_id")
	public Thing getUserThing() {
		return userThing;
	}

	public void setUserThing(Thing userThing) {
		this.userThing = userThing;
	}
}
